﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Home.Master" AutoEventWireup="true" CodeBehind="ReadNewsItem.aspx.cs" Inherits="LizzabethBrownRealEstate.Views.Users.ReadNewsItem" %>
<%@ Import Namespace="LizzabethBrownRealEstate.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="StylePlaceHolder" runat="server">
    <style type="text/css">
        h2 { font-size: 1.4em; font-weight: bold; color: Maroon; }
        p { font-size: 1em; color: Black; }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

<% LBRDataContext dc = new LBRDataContext();  %>
    <% NewsItem n = dc.GetNewsItem(int.Parse(ViewData["NewsItemId"].ToString()));
       if (n == null) n = new NewsItem();
       object vals = new { newsItemId = n.NewsItemId };
    %>
    <div class="contentDiv" style="margin-left:2%; margin-top:20px">
    <h2><%= n.Title %></h2>
    <p><%= n.Body %></p>
    </div>
    
    
</asp:Content>
